package com.yanqu.road.logic.helper;

import com.yanqu.road.entity.enums.eActivityType;
import com.yanqu.road.entity.enums.eGamePlayerEventType;

import java.util.ArrayList;
import java.util.List;

public class UnionActivityTaskConditionHelper {

    private static List<Integer> activityTypeList = new ArrayList<>();
    private static List<Integer> conditionTypeList = new ArrayList<>();

    static {
        // 包含商会condition的活动类型
        activityTypeList.add(eActivityType.HangHaiActivity.getValue());
        activityTypeList.add(eActivityType.BiaoJu.getValue());
        activityTypeList.add(eActivityType.HorseRun.getValue());

        // 商会condition类型
        conditionTypeList.add(eGamePlayerEventType.UnionRecruitStaffCount.getValue());
        conditionTypeList.add(eGamePlayerEventType.UnionBeautyTrystTimes.getValue());
        conditionTypeList.add(eGamePlayerEventType.UnionChildTrainTimes.getValue());
        conditionTypeList.add(eGamePlayerEventType.UnionMarriageTimes.getValue());
        conditionTypeList.add(eGamePlayerEventType.UnionTradeWarKillPatronsCount.getValue());
        conditionTypeList.add(eGamePlayerEventType.UnionTravelTimes.getValue());
        conditionTypeList.add(eGamePlayerEventType.UnionPatronsUpgradeTimes.getValue());
        conditionTypeList.add(eGamePlayerEventType.UnionHouseClickTimes.getValue());
        conditionTypeList.add(eGamePlayerEventType.UnionUnionConstructTimes.getValue());
        conditionTypeList.add(eGamePlayerEventType.UnionVehicleUpgradeTimes.getValue());
        conditionTypeList.add(eGamePlayerEventType.UnionBanquetJoinTimes.getValue());
        conditionTypeList.add(eGamePlayerEventType.UnionBanquetIntegral.getValue());
        conditionTypeList.add(eGamePlayerEventType.UnionBeautyAddGlamour.getValue());
        conditionTypeList.add(eGamePlayerEventType.UnionInnCookTimes.getValue());
        conditionTypeList.add(eGamePlayerEventType.UnionParergonOperateTimes.getValue());
        conditionTypeList.add(eGamePlayerEventType.UnionUnionMallBuyTimes.getValue());
        conditionTypeList.add(eGamePlayerEventType.UnionBeautyEscortSkillUpgradeTimes.getValue());
        conditionTypeList.add(eGamePlayerEventType.UnionWineShopReception.getValue());

    }


    /**
     * 是否是含有商会condition的活动类型
     */
    public static boolean isActivityTypeContainsUnionCondition(int activityType) {
        return activityTypeList.contains(activityType);
    }

    /**
     * 是否是商会condition类型
     */
    public static boolean isUnionActivityConditionType(int conditionType) {
        return conditionTypeList.contains(conditionType);
    }

    /**
     * 商会conditionType
     */
    public static List<Integer> getConditionTypeList() {
        return conditionTypeList;
    }
}
